HTMLify
style.css
Views: 11 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | * { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; } :root { --transition-speed: 0.5s; --btn-bg-color: transparent; } body { display: flex; flex-direction: column; justify-content: center; align-items: center; transition: var(--transition-speed) ease; } .img { background-position: center; background-size: cover; background-repeat: no-repeat; top: -15vh; left: -15vw; z-index: 1; } .arrow-btn { position: fixed; bottom: 10vh; } .left-arrow { left: calc(50vw - 120px); } .right-arrow { right: calc(50vw - 120px); } .btn { background-color: var(--btn-bg-color); border: none; color: crimson; font-size: 3rem; cursor: pointer; } /* Animation For JavaScript */ .animateTransition { animation: animation var(--transition-speed) ease; } @keyframes animation { 0% { transform: translateX(5px); filter: blur(4px); } 50% { transform: translateX(-5px); filter: blur(2px); } 100% { transform: translateX(0); filter: blur(0); } } |